package org.finesys.system.api.feign;

import org.finesys.common.constants.ServerConstants;
import org.finesys.common.core.module.DeptDataPermissionEntity;
import org.finesys.common.core.module.R;
import org.finesys.system.api.service.RoleService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "roleServiceApi", value = ServerConstants.SYSTEM_SERVER)
public interface RoleServiceApi extends RoleService {

    @GetMapping(value = "/role/getDataPermission")
    R<DeptDataPermissionEntity> getDataPermission();

}
